package net.helix.engine.timeline.frame;

import java.util.ArrayList;

import net.helix.core.transform.TransformDimension;
import net.helix.element.Element;

public class TimelineKeyFrame extends TimelineFrame {
	public ArrayList<Element> elements;
	public TimelineKeyFrame(){
		type = TimelimeFrameType.KEYFRAME;
		elements = new ArrayList<Element>();
	}
	@Override
	public boolean isEmpty(){
		return (elements.size() == 0);
	}
	public void AddElement(Element element, TransformDimension dimension){
		System.out.println("Element added");
		element.setDimension(dimension);
		elements.add(element);
	}
	
	@Override
	public void render(){
		for(int i=0;i<elements.size();i++){
			Element element = elements.get(i);
			element.render();
		}
	}
}
